package com.cn.ssm.service.impl;

import com.cn.ssm.dao.BureauInfoMapper;
import com.cn.ssm.model.BureauInfo;
import com.cn.ssm.service.BureauInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
@Transactional
public class BureauInfoServiceImpl implements BureauInfoService {

	@Resource
	public BureauInfoMapper bureauInfoMapper;

	@Override
	public List<BureauInfo> selectBureauInfo(String code) {
		Map<String,Object> param=new HashMap<>();
		param.put("code",code);
		return bureauInfoMapper.selectBureauInfo(param);
	}

	@Override
	public List<Map<String, Object>> selectBynum(String sequesenum) {
		return bureauInfoMapper.selectBynum(sequesenum);
	}
}
